<?php

/**
 *  Demo to use standard php file function, get xml resourses from web.   
 *  Be carefull of htmlentites() must be provide correct charset pararmeter.
 *  
 */
print '<html><body><ul>';

$url = 'http://chinese.engadget.com/rss.xml';
$rss = simplexml_load_file($url);
print '<ul>';

foreach ($rss->channel->item as $item){
	print '<li><a href="'.
		htmlentities($item->link, ENT_COMPAT, 'UTF-8'). '">'.
		htmlentities($item->title, ENT_COMPAT, 'UTF-8'). '</a></li>';
	
}
print '</ul></body></html>';
?>